package com.jsh.erp.datasource.entities;

import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class MaterialExtend {
    private Long id;

    private Long materialId;

    private String barCode;

    private String commodityUnit;

    private String sku;

    private BigDecimal purchaseDecimal;

    private BigDecimal commodityDecimal;

    private BigDecimal wholesaleDecimal;

    private BigDecimal lowDecimal;

    private String defaultFlag;

    private Date createTime;

    private String createSerial;

    private String updateSerial;

    private Long updateTime;

    private Long tenantId;

    private String deleteFlag;


    public void setBarCode(String barCode) {
        this.barCode = barCode == null ? null : barCode.trim();
    }

    public void setCommodityUnit(String commodityUnit) {
        this.commodityUnit = commodityUnit == null ? null : commodityUnit.trim();
    }

    public void setSku(String sku) {
        this.sku = sku == null ? null : sku.trim();
    }

    public void setDefaultFlag(String defaultFlag) {
        this.defaultFlag = defaultFlag == null ? null : defaultFlag.trim();
    }

    public void setCreateSerial(String createSerial) {
        this.createSerial = createSerial == null ? null : createSerial.trim();
    }

    public void setUpdateSerial(String updateSerial) {
        this.updateSerial = updateSerial == null ? null : updateSerial.trim();
    }

    public void setDeleteFlag(String deleteFlag) {
        this.deleteFlag = deleteFlag == null ? null : deleteFlag.trim();
    }
}